package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TeaShop;
import com.ruoyi.system.domain.TeaShopEmployee;
import com.ruoyi.system.domain.TeaShopInventory;
import com.ruoyi.system.domain.TeaShopWorkPlace;
import org.apache.ibatis.annotations.Param;

/**
 * 茶店信息Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-30
 */
public interface TeaShopMapper 
{
    /**
     * 查询茶店信息
     * 
     * @param id 茶店信息主键
     * @return 茶店信息
     */
    public TeaShop selectTeaShopById(Long id);

    /**
     * 查询茶店信息列表
     * 
     * @param teaShop 茶店信息
     * @return 茶店信息集合
     */
    public List<TeaShop> selectTeaShopList(TeaShop teaShop);

    /**
     * 新增茶店信息
     * 
     * @param teaShop 茶店信息
     * @return 结果
     */
    public int insertTeaShop(TeaShop teaShop);

    /**
     * 修改茶店信息
     * 
     * @param teaShop 茶店信息
     * @return 结果
     */
    public int updateTeaShop(TeaShop teaShop);

    /**
     * 删除茶店信息
     * 
     * @param id 茶店信息主键
     * @return 结果
     */
    public int deleteTeaShopById(Long id);

    /**
     * 批量删除茶店信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTeaShopByIds(String[] ids);

    public List<TeaShopEmployee> selectAllocatedList(TeaShopWorkPlace teaShopWorkPlace);


    public List<TeaShopEmployee> selectUnAllocatedList(TeaShopWorkPlace teaShopWorkPlace);

    public int insertUnAllocateEmployees(List<TeaShopWorkPlace> list);

    public int deleteAllocateEmployee(TeaShopWorkPlace teaShopWorkPlace);

    public int deleteAllocateEmployees(@Param("teaShopId") Long teaShopId,@Param("employeeIds")  Long[] employeeIds);

    public List<TeaShopInventory> selectTeaShopInventoryList(TeaShopInventory teaShopInventory);
}
